package com.handsome.解释器模式.spring源码;

import org.springframework.expression.Expression;
import org.springframework.expression.spel.standard.SpelExpressionParser;

/**
 * @author niechun
 * @date 2023/3/26 16:13
 */
public class Source {
    public static void main(String[] args) {

        SpelExpressionParser spelExpressionParser = new SpelExpressionParser();
        Expression expression = spelExpressionParser.parseExpression("10*(2+1)-66");
        Object result = expression.getValue();
        System.out.println(result);
    }
}
